package com.example.element.module.service

import android.app.IntentService
import android.content.Intent
import com.example.common.utils.L

/**
 * 异步、自动停止的Service
 */
class MyIntentService : IntentService("MyIntentService") {

    private val TAG = "MyIntentService"

    override fun onHandleIntent(intent: Intent?) {
        L.e(TAG, "Thread id is ${Thread.currentThread().name}")
    }

    override fun onDestroy() {
        super.onDestroy()
    }
}